#include <iostream>
using namespace std;
int Add(int x,int y)
{
	return x + y;
}
int Miu(int x,int y)
{
	return x - y;
}
int Mul(int x,int y)
{
	return x * y;
}
int Div(int x,int y)
{
	return x / y;
}
int main()
{
    int (*arr[4])(int ,int) = { Add, Miu, Mul, Div };
	int i = 0;
	for(i = 0;i < 4;++i)
	{
		int ret = 0;
		ret = arr[i](8,4);
		cout<<ret<<endl;
	}	
	return 0;
}